var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get("/slideshow",function (req,res) {
    res.json({
        err:0,
        slideimg:[
            {img:"/images/slideshow/01.jpg"},
            {img:"/images/slideshow/02.jpg"},
            {img:"/images/slideshow/03.jpg"},
            {img:"/images/slideshow/04.jpg"},
        ]
    })
})

module.exports = router;
